// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_CHK_QUALITY_CHECKING
// * CreateDate    : 2011-11-23 11:20:26
// * Creater       : CodeSmith
// * LastChangeDate: 2011-11-23 11:20:26
// * LastChanger   : 2011-11-23 11:20:26
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESOL.Common.Entity;
using Suzsoft.Smart.Data;
using System.Data;
using ESOL.Common;
using ESOL.Business.Mst;
using ESOL.Business.Prod;

namespace ESOL.Business.Chk
{
/// <summary>
    /// ChkQualityChecking
    /// </summary>
    public partial class ChkQualityCheckingBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objChkQualityCheckingEntity">Entity</param>
        /// <returns>Entity</returns>
        public static ChkQualityCheckingEntity GetChkQualityChecking(ChkQualityCheckingEntity objChkQualityCheckingEntity)
        {
            return DataAccess.SelectSingle<ChkQualityCheckingEntity>(objChkQualityCheckingEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objChkQualityCheckingEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertChkQualityChecking(ChkQualityCheckingEntity objChkQualityCheckingEntity)
        {
            return DataAccess.Insert(objChkQualityCheckingEntity);
        }

        public static bool InsertChkQualityChecking(List<ChkQualityCheckingEntity> objChkQualityCheckingEntityList)
        {
            return DataAccess.Insert(objChkQualityCheckingEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objChkQualityCheckingEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateChkQualityChecking(ChkQualityCheckingEntity objChkQualityCheckingEntity)
        {
            return DataAccess.Update(objChkQualityCheckingEntity);
        }

        public static bool UpdateChkQualityChecking(List<ChkQualityCheckingEntity> objChkQualityCheckingEntityList)
        {
            return DataAccess.Update<ChkQualityCheckingEntity>(objChkQualityCheckingEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objChkQualityCheckingEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteChkQualityChecking(ChkQualityCheckingEntity objChkQualityCheckingEntity)
        {
            return DataAccess.Delete(objChkQualityCheckingEntity);
        }

        public static bool DeleteChkQualityChecking(List<ChkQualityCheckingEntity> objChkQualityCheckingEntityList)
        {
            return DataAccess.Delete<ChkQualityCheckingEntity>(objChkQualityCheckingEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetChkQualityCheckingAll()
        {
            return DataAccess.SelectAllDataSet<ChkQualityCheckingEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<ChkQualityCheckingEntity> GetChkQualityCheckingAllList()
        {
            return DataAccess.SelectAll<ChkQualityCheckingEntity>();
        }
        #endregion

        #region Functions
        public static ChkQualityCheckingEntity GetQcOrderByID(string ID)
        {
            if (string.IsNullOrEmpty(ID))
                return null;
            ChkQualityCheckingEntity m = new ChkQualityCheckingEntity();
            m.CheckingId = ID;
            return DataAccess.SelectSingle<ChkQualityCheckingEntity>(m);
        }

        #endregion
    }
	
	
}	

